home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 80 / CD Actual 80 Julio-Agosto 2003.iso / Linux / LinuxGazette / lg / issue79 / misc / tougher / xml_exceptions.hpp.txt < prev    next >
Encoding:
Text File  |  2002-08-14  |  1.3 KB  |  63 lines

  1. //
  2. //
  3. // Copyright 2002 Rob Tougher <robt@robtougher.com>
  4. //
  5. // This file is part of xmlrpc.
  6. //
  7. // xmlrpc is free software; you can redistribute it and/or modify
  8. // it under the terms of the GNU General Public License as published by
  9. // the Free Software Foundation; either version 2 of the License, or
  10. // (at your option) any later version.
  11. //
  12. // xmlrpc is distributed in the hope that it will be useful,
  13. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. // GNU General Public License for more details.
  16. //
  17. // You should have received a copy of the GNU General Public License
  18. // along with xmlrpc; if not, write to the Free Software
  19. // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  20. //
  21. //
  22.  
  23.  
  24.  
  25. //
  26. // exceptions
  27. //
  28.  
  29. #ifndef _xml_exceptions_
  30. #define _xml_exceptions_
  31.  
  32. namespace xml
  33. {
  34.  
  35.   class exception
  36.     {
  37.     public:
  38.       exception ( const std::string s ) : m_s ( s ){};
  39.       ~exception(){};
  40.  
  41.       std::string description() const
  42.     {
  43.       return m_s;
  44.     }
  45.  
  46.     private:
  47.       std::string m_s;
  48.     };
  49.  
  50.  
  51.   class parse_exception : public exception
  52.     {
  53.     public:
  54.       parse_exception ( const std::string s ) : exception ( s ){};
  55.       ~parse_exception(){};
  56.     };
  57.  
  58.  
  59. };
  60.  
  61.  
  62. #endif
  63.